Release 10.1A: OpenEdge Development:
Web Services


Defining header handlers

A 4GL application does most of the work for accessing or creating a SOAP header in the two header handlers that you can invoke for Web service operations ( Chapter 10 "Invoking Web Service Operations from the Progress 4GL"). These include a callback procedure for handling the SOAP response message header and another callback procedure for handling the SOAP request message header for the operation. This is the syntax for defining the signatures for these two procedures:

These are the parameters:

For both types of callback procedure you can use the INPUT parameters, cOperationNamespace and cOperationLocalName, to determine the Web service operation for which the message is generated. You might use this information either to determine how to parse the SOAP response header based on the invoked operation or to build a SOAP request header that is specific to the invoked operation.

If you need to pass context between the code that invokes a Web service operation and a header callback procedure, you can pass the context information as you might for any internal procedure:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095